<?php 
/* format cua chuoi xml
	<area id=":id" name=":area_name">
		<table id=":id_table">
			<name>:table_name</name>
			<used>:used</used>
		</table>
		<table id=":id_table">
			<name>:table_name</name>
			<used>:used</used>
		</table>
		......
	</area>
 */
?>
<?php if(is_array($tables)){ ?>
	<?xml version="1.0" encoding="UTF-8"?>
	<area id="<?php echo $tables['Area']['id']?>" name="<?php echo $tables['Area']['area_name']; ?>" >
	<?php 
		foreach ($tables['Table'] as $table){
	?>
		<table id="<?php echo $table['id'];?>">
			<name><?php echo $table['id'];?></name>
			<used><?php echo $table['used'];?></used>
		</table>
	<?php 
		}
	?>
	</area>
<?php 
}
?>